<template>
  <div class="wrapper">
      <swiper :options="swiperOption" >
    <!-- slides -->
    <swiper-slide v-for="item of List" :key="item.id">
      <img  class="swiper-img" :src="item.imgUrl">
      </swiper-slide>

    <!-- Optional controls -->
    <div class="swiper-pagination"  slot="pagination"></div>
  </swiper>
  </div>
</template>
<script>
export default {
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true
      }
    }
  },
  props:{
    List:Array
  }

}
</script>

<style  scoped>
.swiper-img{
  width: 100%;
}
.wrapper{
  width: 100%;
   padding-bottom: 32.5%;
  overflow: hidden;
  background: #eee;
  height: 0;
}
.wrapper >>> .swiper-pagination-bullet-active{
  background: #fff !important
}
</style>
